package com.jeecg.action;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.jeecg.annoction.Controller;
import com.jeecg.annoction.RequestMapping;
import com.jeecg.pojo.LoginBean;
import com.jeecg.utils.FullBeansUtils;

@Controller
public class LoginController {
	
	
	@RequestMapping(value="/login")
	public String login(HttpServletRequest request,HttpServletResponse response,LoginBean loginBean){
		
		
		
		
		loginBean =	(LoginBean) FullBeansUtils.setValue(request, loginBean.getClass().getName());
		
		request.setAttribute("loginBean", loginBean);
		return "index";
	}
	
	
	public static void main(String[] args) {
		
		LoginBean loginBean = new LoginBean();
		System.out.println(loginBean.getClass().getName());
	}
}
